all: main.o element1d.o
	g++ -o main main.o element1d.o
element1d.o: element1d.cpp element1d.h
	g++ -c element1d.cpp
main.o: main.cpp
	g++ -c main.cpp
clean:
	rm *.o
	rm main
debug: main.cpp element1d.cpp element1d.h
	g++ -o main -g main.cpp element1d.cpp

story: doc.tex
	xelatex doc
	xelatex doc
